package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.EducationUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EducationMapper;
import com.ruoyi.system.domain.Education;
import com.ruoyi.system.service.IEducationService;

/**
 * 课程Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-06
 */
@Service
public class EducationServiceImpl implements IEducationService 
{
    @Autowired
    private EducationMapper educationMapper;

    /**
     * 查询课程
     * 
     * @param eId 课程ID
     * @return 课程
     */
    @Override
    public Education selectEducationById(Long eId)
    {
        return educationMapper.selectEducationById(eId);
    }

    /**
     * 查询课程列表
     * 
     * @param education 课程
     * @return 课程
     */
    @Override
    public List<Education> selectEducationList(Education education)
    {
        return educationMapper.selectEducationList(education);
    }

    /**
     * 新增课程
     * 
     * @param education 课程
     * @return 结果
     */
    @Override
    public int insertEducation(Education education)
    {
        return educationMapper.insertEducation(education);
    }

    /**
     * 修改课程
     * 
     * @param education 课程
     * @return 结果
     */
    @Override
    public int updateEducation(Education education)
    {
        return educationMapper.updateEducation(education);
    }

    /**
     * 批量删除课程
     * 
     * @param eIds 需要删除的课程ID
     * @return 结果
     */
    @Override
    public int deleteEducationByIds(Long[] eIds)
    {
        return educationMapper.deleteEducationByIds(eIds);
    }

    /**
     * 删除课程信息
     * 
     * @param eId 课程ID
     * @return 结果
     */
    @Override
    public int deleteEducationById(Long eId)
    {
        return educationMapper.deleteEducationById(eId);
    }

    @Override
    public int insertEducationUser(EducationUser educationUser) {
        return educationMapper.insertEducationUser(educationUser);
    }

    @Override
    public EducationUser selectEducationUserById(Long peId) {
        return educationMapper.selectEducationUserById(peId);
    }

    @Override
    public List<EducationUser> selectEducationUserList(EducationUser educationUser) {
        return educationMapper.selectEducationUserList(educationUser);
    }
}
